//
//  levelayerManager.m
//  mmtouch
//
//  Created by xing lion on 11-9-8.
//  Copyright 2011年 tencent. All rights reserved.
//

#import "levelayerManager.h"
#import "leveLayer.h"
#import "leve2Layer.h"
#import "Leve3Layer.h"
#import "CCScrollLayer.h"

@implementation levelayerManager

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
        
        CCSprite* sp = [CCSprite spriteWithFile:@"levemanagerBG.jpg"];
        
        sp.position = ccp(160, 240);
        
        [self addChild:sp];
        
        
        CCLayer* ly = [leveLayer node];
        CCLayer* ly2 = [leve2Layer node];
        CCLayer* ly3 = [Leve3Layer node];
        CCScrollLayer *scroller = [CCScrollLayer nodeWithLayers:[NSMutableArray arrayWithObjects: ly,ly2,ly3,nil] widthOffset: 800];
        
        // finally add the scroller to your scene
        [self addChild:scroller];
    }
    
    return self;
}

@end
